*{
    padding: 0;
    margin: 0;
}

body{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.box{
    width: 475px;
    height: 475px;
    background-color: #bbada0;
    border-radius: 10px;
}

.small{
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    width: 475px;
    height: 100px;
}

.small:nth-child(1){
    margin-top: 15px;
}

.small-box{
    width: 100px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 35px;
    background-color: #cdc1b4;
    border-radius: 5px;
    font-weight: bold;
}

.fs{
    text-align: center;
    font-size: 18px;
    width: 100px;
    top: 80px;
    right: 500px;
    position: absolute;
    background-color: pink;
    border-radius: 5px;
}

.zgfs{
    text-align: center;
    font-size: 18px;
    width: 100px;
    top: 80px;
    right: 390px;
    position: absolute;
    background-color: pink;
    border-radius: 5px;
}

span{
    display: block;
    font-size: 22px;
}

div[value="2"]{
    background-color: #eee4da;
}

div[value="4"]{
    background-color: #ede0c8;
}

div[value="8"]{
    background-color: #f2b179;
    color: #fff;
}

div[value="16"]{
    background-color: #f59563;
    color: #fff;
}

div[value="32"]{
    background-color: #ede0c8;
    color: #fff;
}

div[value="64"]{
    background-color: #f65e3b;
    color: #fff;
}

div[value="128"]{
    background-color: #edcf72;
    color: #fff;
}

div[value="256"]{
    background-color: #edcc61;
    color: #fff;
}

div[value="512"]{
    background-color: #edc850;
    color: #fff;
}

div[value="1024"]{
    color: #fff;
    background: #edc53f;
    box-shadow: 0 0 30px 10px rgba(243,215,116,0.47619), inset 0 0 0 1px rgba(255,255,255,0.28571);
}

div[value="2048"]{
    color: #fff;
    background: #edc22e;
    box-shadow: 0 0 30px 10px rgba(243,215,116,0.55556), inset 0 0 0 1px rgba(255,255,255,0.33333);
}

.keyRestart, .keyBack{
    width: 80px;
    height: 40px;
    font-size: 18px;
    position: absolute;

}

.keyRestart{
    left: 1040px;
    top: 350px;
}

.keyBack{
    left: 1040px;
    top: 400px;
}